package com.zzxy.spring12.aspect;

public class MyAspectJ {
    public void mybefore(JoinPoint jp){
        System.out.println(jp.getSignature().getName());
        System.out.println("before ...");
    }
    public void myAfterreturning(JoinPoint jp,Object ret){
        System.out.println("after returning .."+ret);

    }
    public Object MyAround(ProceedingJoinPoint pjp){
        System.out.println("around before ...");
        Object obj=pjp.proceed();
        System.out.println("around before ...");
        return obj;
    }
    public void myThrowable(JoinPoint jp,Throwable e){
        System.out.println("throwing .." + e.getMessage());
    }
    public void myAfter(JoinPoint jp){
        System.out.println(jp.getSignature().getName());
        System.out.println("after ...");
    }

    private class ProceedingJoinPoint {
        public Object proceed() {
            return null;
        }
    }
}